﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Effects - Sliding</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("#btn1").click(function() { $("div").slideDown("slow"); });
            $("#btn2").click(function() { $("div").slideUp("slow"); });
            $("#btn3").click(function() { $("div").slideToggle("slow"); });
            $("#isSPPD").click(function() 
            {
                $("div").slideToggle("slow"); 
            });
        });  
    </script>
    <style type="text/css">
        div
        {
            width:230px;
            height:30px;
            border:dashed 1px #000;
            padding:5px;
            margin:5px;
            cursor:pointer;
        }
    </style>
</head>
<body>
    <div></div>
    <input type="checkbox" id="isSPPD" />
    <input type="button" value="slide down" id="btn1" />
    <input type="button" value="slide up" id="btn2" />
    <input type="button" value="slide toggle" id="btn3" />
    <div></div>
</body>
</html>
